{include file="public/meat" title="订单列表"/}
{load href="__ADMIN__/css/order.css" /}
<div class="layout cx-fex-c mt-20 b-b pad-b10">
    <div class="xl11 cx-fex-l">
        <a class="button {neq name='$Request.action' value='index'}bg-blue{/neq} mr-10" href="{:url('index')}">订单速览</a>
        <a class="button {neq name='$status' value='all'}bg-blue{/neq} mr-10" href="{:url('get_list',array('status'=>'all'))}">全部预约</a>
        <a class="button {neq name='$status' value='one'}bg-blue{/neq} mr-10" href="{:url('get_list',array('status'=>'one'))}">等待分配老师</a>
        <a class="button {neq name='$status' value='1'}bg-blue{/neq} mr-10" href="{:url('get_list',array('status'=>'1'))}">等待授课</a>
        <a class="button {neq name='$status' value='2'}bg-blue{/neq} mr-10" href="{:url('get_list',array('status'=>'2'))}">授课完成</a>
        <a class="button {neq name='$status' value='3'}bg-blue{/neq} mr-10" href="{:url('get_list',array('status'=>'3'))}">申请取消课程</a>
        <a class="button {neq name='$status' value='4'}bg-blue{/neq} mr-10" href="{:url('get_list',array('status'=>'4'))}">已取消</a>
    </div>
</div>
<div class="layout cx-fex-c mt-20">
    <div class="xl11 fex-column">
        <table class="cx-teble cx-teble-bor-w cx-teble-bor cx-table-hover cx-table-responsive-w">
            <thead>
            <tr>
                <th class="t-c" width="80">ID</th>
                <th class="t-c">课程</th>
                <th class="t-c" width="150">预约时间</th>
                <th class="t-c" width="100">联系人</th>
                <th class="t-c" width="120">电话</th>
                <th class="t-c" width="150">老师</th>
                <th class="t-c" width="80">特约费</th>
                <th class="t-c" width="200">状态</th>
            </tr>
            </thead>
            <tbody>
            {volist name="makelist" id="cx" empty=""}
            <tr>
                <td class="t-c">{$i}</td>
                <td class="t-12">{$cx.arttitle|default=""}</td>
                <td class="t-c t-12">{$cx.maketime|date="Y-m-d h:i:d",###}</td>
                <td class="t-c t-12">{$cx.useraddress.adduname|default=""}</td>
                <td class="t-c t-12">{$cx.useraddress.phone|default=""}</td>
                <td class="t-c t-12">{empty name="$cx.vipuid"}等待分配老师{else /}{$cx.vipname}{/empty}</td>
                <td class="t-c t-12">{$cx.vipmoney|default=""}</td>
                <td class="t-c t-12">
                    {switch name="cx.status"}
                    {case value="0"}
                    {eq name="$cx.paystatus" value="0"}
                    <a class="order-li-contan button button-S bg-red" href="{:url('edit',array('id'=>$cx.id))}">等待支付特约费</a>
                    {else/}
                    <a class="order-li-contan button button-S bg-red" href="{:url('edit',array('id'=>$cx.id))}">分配老师</a>
                    {/eq}
                    {/case}
                    {case value="1"}
                        {eq name="$cx.vipstatus" value="3"}
                        <a class="order-li-contan button button-S bg-red" href="{:url('edit',array('id'=>$cx.id))}">请重新分配老师</a>
                        {/eq}
                        {eq name="$cx.vipstatus" value="0"}
                        <a class="order-li-contan button button-S bg-green" href="{:url('edit',array('id'=>$cx.id))}">等待老师接单</a>
                        {/eq}
                        {eq name="$cx.vipstatus" value="1"}
                        <a class="order-li-contan button button-S" href="{:url('edit',array('id'=>$cx.id))}">等待授课</a>
                        {/eq}
                        {eq name="$cx.vipstatus" value="2"}
                        <a class="order-li-contan button button-S" href="{:url('edit',array('id'=>$cx.id))}">等待学员确认</a>
                        {/eq}
                    {/case}
                    {case value="2"}
                    <a class="order-li-contan button button-S bg-blue" href="{:url('edit',array('id'=>$cx.id))}">课程结束</a>
                    {/case}
                    {case value="3"}
                    {eq name="$cx.toidstatus" value="0"}
                    <a class="order-li-contan button button-S bg-red" href="{:url('edit',array('id'=>$cx.id))}">等待支付违约费</a>
                    {else /}
                    <a class="order-li-contan button button-S bg-red" href="{:url('edit',array('id'=>$cx.id))}">申请课程取消</a>
                    {/eq}
                    {/case}
                    {case value="4"}
                    <a class="order-li-contan button button-S" href="{:url('edit',array('id'=>$cx.id))}">已取消</a>
                    {/case}
                    {/switch}

                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <div class="t-c mt-20">
            {$pages}
        </div>
    </div>
</div>
{include file="public/js" /}
<div class="layout mt-20 cx-fex-c">
</div>
<script>
    layui.config({
        base: '__ADMIN__/js/'
    }).use('app');
</script>
{include file="order/foot" /}
{include file="public/footer" /}